﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using HotelManager.Data_Transfer_Layer;
using HotelManager.Data_Access_Layer;
using System.Data.OleDb;
using System.Data;

namespace HotelManager.Business_Logic_Layer
{
    class dichvuBLO
    {
        #region Variables
        private string error;
        private dichvuDAO DAO;
        #endregion

        public dichvuBLO()
        {
            DAO = new dichvuDAO();
            error = "";
        }
        public dichvuDTO[] get()
        {
            return DAO.get();
        }
        public string[] get_arr()
        {
            return DAO.get_arr();
        }
        public dichvuDTO[] List_current(int ldv_id)
        {
            return DAO.List_current(ldv_id);
        }
        public dichvuDTO View_Detail(int dv_id)
        {
            return DAO.View_Detail(dv_id);
        }
        public dichvuDTO View_DetailbyName(string dv_tendv)
        {
            return DAO.View_DetailbyName(dv_tendv);
        }
        public void Delete(dichvuDTO obj)
        {
            DAO.Delete(obj);
        }
        public void Insert(dichvuDTO obj)
        {
            DAO.Insert(obj);
        }
        public void Update(dichvuDTO obj)
        {
            DAO.Update(obj);
        }
    }
}
